package com.chinaunicom.structure.proxy.dynamicproxy.jdk;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/8/9 10:12
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new Teacher());

        Person person = (Person) proxyFactory.getProxyInstance();

        person.showAge(10);
        System.out.println("-------------------------------------------");
        person.showInfo();
    }
}
